package com.design.patterns.list.listener.event;

/**
 * @author Wangzhiwen
 */
public class RainWeatherEvent extends WeatherEvent {
    /**
     * Constructs a prototypical Event.
     *
     * @param source The object on which the Event initially occurred.
     * @throws IllegalArgumentException if source is null.
     */
    public RainWeatherEvent(Object source) {
        super(source);
    }

    @Override
    public String getWeather() {
        return source.toString();
    }
}
